﻿using System;
using System.Diagnostics;
using RaytracerLib.MathLib;
using RaytracerLib.RenderableObjects;

namespace RaytracerLib.Rays
{
    public class ReflectedRay : Ray
    {
        public ReflectedRay(Intersection a_intersection, Vector3 a_dir)
            : base(a_intersection.Scene)
        {
            a_intersection.Scene.Statistics.ReflectedRaysCreated++;

            RaySurfaceSide = RaySurfaceSide.ReflectedSide;
            Start = a_intersection.Pos;
            Dir = a_dir;
            Depth = a_intersection.SourceRay.Depth + 1;
        }
    }
}